import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class CreateOrganizationDto {
  @ApiProperty({
    description: '组织名称',
    example: '小橙子科技有限公司',
    type: 'string',
    required: true,
  })
  @IsNotEmpty({ message: '组织名称必填' })
  @IsString()
  organizationName: string;

  @ApiProperty({
    description: '组织简称',
    example: '小橙子',
    type: 'string',
  })
  orgShortName: string;

  @ApiProperty({
    description: '组织编码',
    example: 'Orange',
    type: 'string',
  })
  organizationCode: string;
}
